package com.lmaye.design.patterns.behavioral.observer.demo2;

/**
 * --
 *
 * @author lmay.Zhou
 * @qq 379839355
 * @email lmay@lmaye.com
 * @date 2021/4/19 下午5:49
 * @since 1.8
 */
public class RmbRate extends Rate {
    @Override
    public void change(int number) {
        for (Company obs : companies) {
            ((Company) obs).response(number);
        }
    }
}
